import * as index from '@/api/index.js'
export default {
	data() {
		return {
			text:''
		}
	},
	
	onShow() {
	
	},
	onLoad(option) {
		this.getArticle(option.name)
	},

	methods: {
		getArticle(name){
			index.getArticle({title:name}).then(res=>{
				console.log(res,'res');
				this.text = res.data.content
			})
		}
	}
}